import request from '@/utils/request';

// 获取评测结果
export function getJudgeResult(submitId) {
  return request({
    url: `/api/hoj/full-case-judgement-result?submitId=${submitId}`,
    method: 'get'
  });
}

// 获取评测结果
export function getJudgeDetailedResult(submitId) {
  return request({
    url: `/api/hoj/full-case-judgement-detailed-result?submitId=${submitId}`,
    method: 'get'
  });
}

// 重新评测
export function submitJudge(data) {
  return request({
    url: `/api/hoj/full-case-judgements`,
    method: 'post',
    data
  });
}

// 获取用户的提交历史
export function getUserSubmissions(params) {
  return request({
    url: '/api/hoj/me/judge-submits',
    method: 'get',
    params
  });
} 